<?php

require '../GestionPermisos/config/conn.php';
   $vIDTR=$_POST["id"];
   $vNOTR=$_POST["nombre"];
   $vA1TR=$_POST["apelli1"];
   $vA2TR=$_POST["apelli2"];
   $vTIRE=$_POST["tipo"];
   /*
echo "$vIDTR";
echo "$vNOTR";
echo "$vA1TR";
echo "$vA2TR";   
    echo "$vTIRE";*/
    /*if ExisteRegistro("tb01docu", "NUDO",$factura,"A") then
    {
	*/
	
    $SQLstr = "INSERT INTO ga04respon (GA04IDRE,GA04NORE,GA04APEI,GA04APII,GA05IDTR)
	             VALUES('$vIDTR','$vNOTR','$vA1TR', '$vA2TR','$vTIRE');";
		
    if (!$conectarBD->query($SQLstr))
    {
      echo'<script language=javascript>
        alert("No se a podido registrar los datos.")
        self.location="mt01.php"
      </script>';
    }
	else{
		echo'<script language=javascript>
        alert("Registrado con exitos")
        self.location="index.php"
      </script>';
		}
    $conectarBD->close();
   
?>